:root {
  font-family: Inter, system-ui, Avenir, Helvetica, Arial, sans-serif;
  line-height: 1.5;
  font-weight: 400;

  color-scheme: light dark;
  color: rgba(255, 255, 255, 0.87);
  background-color: #242424;

  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  margin: 0;
  padding: 20px;
  min-width: 320px;
  min-height: 100vh;
}

#app {
  max-width: 1280px;
  margin: 0 auto;
  padding: 2rem;
}

/* 示例容器样式 */
.example {
  margin-bottom: 30px;
  padding: 20px;
  border: 1px solid #444;
  border-radius: 8px;
  background-color: rgba(255, 255, 255, 0.05);
}

.example h3 {
  margin-top: 0;
  color: #4CAF50;
  border-bottom: 1px solid #555;
  padding-bottom: 10px;
}

/* 用于样式切换的按钮 */
button {
  padding: 8px 16px;
  margin: 5px;
  cursor: pointer;
  border: none;
  border-radius: 4px;
  background-color: #1e88e5;
  color: white;
  font-size: 14px;
  transition: background-color 0.3s;
}

button:hover {
  background-color: #1976d2;
}

/* 单选按钮组样式 */
.radio-group {
  margin: 15px 0;
}

.radio-group label {
  margin-right: 20px;
  cursor: pointer;
  display: inline-block;
}

.radio-group input[type="radio"] {
  margin-right: 5px;
}

/* 结果类型样式 */
.result-type {
  padding: 15px;
  border-radius: 5px;
  margin: 10px 0;
  font-weight: bold;
}

.result-type.A {
  background-color: #2196F3;
  color: white;
}

.result-type.B {
  background-color: #FF9800;
  color: white;
}

.result-type.C {
  background-color: #4CAF50;
  color: white;
}

.result-type.default {
  background-color: #9E9E9E;
  color: white;
}

/* 对比示例样式 */
.comparison {
  display: flex;
  gap: 20px;
  margin: 15px 0;
  flex-wrap: wrap;
}

.comparison-item {
  flex: 1;
  min-width: 250px;
  padding: 15px;
  border: 1px solid #555;
  border-radius: 5px;
  background-color: rgba(255, 255, 255, 0.03);
}

.comparison-item h4 {
  margin-top: 0;
  color: #2196F3;
}

.compare-box {
  padding: 15px;
  background-color: #4CAF50;
  color: white;
  border-radius: 5px;
  margin: 10px 0;
  min-height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.notes {
  background-color: rgba(255, 193, 7, 0.1);
  padding: 15px;
  border-left: 4px solid #FFC107;
  border-radius: 4px;
  margin-top: 15px;
}

.notes ul {
  margin: 10px 0 0 0;
}

/* 数字容器样式 */
.numbers-container {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 15px 0;
}

.number-item {
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 5px;
  font-weight: bold;
  font-size: 18px;
}

.number-item.even {
  background-color: #2196F3;
  color: white;
}

.number-item.odd {
  background-color: #9E9E9E;
  color: white;
}

/* 控制面板样式 */
.control-panel {
  margin: 15px 0;
}

.control-panel label {
  display: block;
  margin: 10px 0;
  cursor: pointer;
}

.control-panel input[type="checkbox"] {
  margin-right: 10px;
}

/* 视图样式 */
.advanced-view, .basic-view {
  padding: 20px;
  border-radius: 5px;
  margin: 15px 0;
}

.advanced-view {
  background-color: rgba(33, 150, 243, 0.1);
  border: 1px solid #2196F3;
}

.basic-view {
  background-color: rgba(76, 175, 80, 0.1);
  border: 1px solid #4CAF50;
}

/* 代码块样式 */
pre {
  background-color: #333;
  padding: 10px;
  border-radius: 4px;
  overflow-x: auto;
}

/* 一些基本的动画效果 */
.example {
  transition: all 0.3s ease;
}

.example:hover {
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  transform: translateY(-2px);
}